import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:honeypotflutter/modules/hire/pages/hire_empty/view.dart';
import 'package:honeypotflutter/modules/hire/pages/hire_rent/view.dart';
import 'package:honeypotflutter/public/views/public_appBar.dart';
import 'package:honeypotflutter/public/views/public_tabBar_scrollView.dart';
import 'logic.dart';

class HirePage extends StatefulWidget {
  const HirePage({Key? key}) : super(key: key);

  @override
  State<HirePage> createState() => _HirePageState();
}

class _HirePageState extends State<HirePage> {
  final HireLogic logic = Get.put(HireLogic());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: HLAppBar(navigationTitle: "租用格口"),
      body: HLTabBarScrollView(
        mens: ["常用柜机", "已租用格口"],
        children: [HireEmptyPage(source: 1), HireRentPage()],
      ),
    );
  }

  @override
  void dispose() {
    Get.delete<HireLogic>();
    super.dispose();
  }
}
